function c(){
    return new Promise((resolve)=>{
        setTimeout(()=>{
            console.log("c");
            resolve()
        },1000)
    })
}
function a(){
    console.log("a");
    
}
(async function add(){
    await c()
    a()
})()
console.log(1);
